<script setup>
import { onMounted, ref } from 'vue';
import sonCom from './components/son-com.vue'
const h1Ref = ref(null)
const sonRef = ref(null)

onMounted(() => {
  console.log(h1Ref);
  console.log(sonRef)
  sonRef.value.say()
})
</script>

<template>
  <div class="app-page">app</div>
  <h1 ref="h1Ref">我是个h1</h1>
  <sonCom ref="sonRef"></sonCom>
</template>

<style scoped></style>
